package cn.cboard.service;

import cn.cboard.dao.DaoFacade;
import cn.cboard.service.dao.ForumServiceDao;
import cn.cboard.service.dao.OnlineServiceDao;
import cn.cboard.service.dao.SessionServiceDao;
import cn.cboard.service.dao.ThreadServiceDao;
import cn.cboard.service.dao.UserServiceDao;

public class ServiceFactory {
	private ServiceFactory(){}

	public static ForumService getForumService() {
		return new ForumServiceDao(DaoFacade.getForumDao());
	}
	
	public static ThreadService getThreadService(){
		return new ThreadServiceDao(DaoFacade.getThreadDao());
	}	

	public static SessionService getSessionService(){
		return new SessionServiceDao(DaoFacade.getSessionDao());
	}
	
	public static OnlineService getOnlineService(){
		return new OnlineServiceDao();
	}
	
	public static UserService getUserService(){
		return new UserServiceDao();		
	}
}
